package com.cloud.gateway.bean;

import lombok.Data;

@Data
public class ResponseInfo<T> {

    public static final int FAILURE = 500;
    public static final int UNAVAILABLE = 503;
    public static final int UNAUTHORIZED = 401;
    public static final int FORBIDDEN = 403;
    public static final int TOO_MANY_REQUESTS = 429;

    private int code;
    private String message;

    public ResponseInfo(int code) {
        this.code = code;
    }

    public ResponseInfo(int code, String message) {
        this.code = code;
        this.message = message;
    }

}